# views 路由 + 视图函数

from flask import Blueprint, render_template

# 蓝图 需要到__init__.py当中绑定blue
blue = Blueprint('user', __name__)

@blue.route('/')
@blue.route('/home/')
def home():
    pass

    data = {
        'name': 'ikun ikun ikun',
        'age': 26,
        'likes': ['ball', 'sing', 'dance', 'code']
    }

    # return render_template('home.html', **data)
    # return render_template('base.html')
    # return render_template('child1.html')
    return render_template('child2.html', **data)
